let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
    .js('resources/assets/js/admin.js', 'public/js')
    .combine([
        'vendor/almasaeed2010/adminlte/dist/js/adminlte.min.js',
        'vendor/almasaeed2010/adminlte/dist/js/demo.js'
    ], 'public/js/adminlte.min.js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .sass('resources/assets/sass/admin.scss', 'public/css')
    .combine([
        'vendor/almasaeed2010/adminlte/dist/css/AdminLTE.min.css',
        'vendor/almasaeed2010/adminlte/dist/css/skins/_all-skins.min.css'
    ], 'public/css/adminlte.min.css')
    .copy('vendor/almasaeed2010/adminlte/dist/img/', 'public/img-lte/')
    .copy('vendor/almasaeed2010/adminlte/plugins', 'public/plugins/');

